package com.itheima.stock.config;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author by jojo
 * @Date 2022/1/15
 * @Description
 */
@Slf4j
public class StockRejectedExecutionHandler implements RejectedExecutionHandler {
    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        log.info("股票实时数据采集异常");
    }
}
